package com.dragon.web.commons.constant;

public class Constant {

	/**
	 * 日志追踪中标记名称 traceId
	 */
	public static final String TRACE_ID = "traceId";
	
	/**
	 * 正则表达式-手机号
	 */
	public final static String MOBLE_REG_STR = "^((13[0-9])|(14[0-9])|(15[^4,\\D])|(16[0-9])|(17[0-9])|(18[0-9])|(19[0-9]))\\d{8}$";
	
	/**
	 * 正则表达式-身份证
	 */
	public final static String IDCAED_REG_STR = "^[1-9]\\\\d{5}[1-9]\\\\d{3}((0\\\\d)|(1[0-2]))(([0|1|2]\\\\d)|3[0-1])\\\\d{3}([0-9]|X)$";

	/**
	 * 正则表达式-邮件
	 */
	public final static String MAIL_REG_STR = "^([\\w-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([\\w-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$";

	public final static String INTEGER_REG_STR = "^\\\\d+(\\\\.0)?$";
	
	/**
	 * 本地IP地址
	 */
	public final static String IP_LOCALHOST = "127.0.0.1";
	
	/**
	 * 图片预览路径
	 */
	public final static String IMAGE_REVIEW_PERFIX = "/imageview";
}
